SELECT CONCAT( "/", demographic.demographic_no, "/" )"Link", last_name,first_name,service_date, provider_no, billing_code,service_date FROM billingmaster, demographic WHERE billingmaster.demographic_no = demographic.demographic_no and dx_code1 in ({dx_code}) and billing_code in ({Billing_Code}) and provider_no in({Provider_Number})and service_date >= '{start}' and service_date <= '{finish}' order by service_date;